package demo.dao;

import demo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {
    User findByUid(Integer uid);
    User findByPhone(String phone);
    int update(User user);
    int del(Integer uid);
    List<User> findAll();
    List<User> findByRole(String role);
    int add(User user);
}
